home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Unix / cvs-960311 / lib / cvs / examples / uncom < prev    next >
Encoding:
Text File  |  1995-07-21  |  398 b   |  21 lines

  1. #!/bin/sh
  2. #
  3. # extract the combined package (created with comb)
  4. # into the individual components.
  5.  
  6. # move the file to a new name with an extension
  7. rm -rf $1.cvswrap
  8. mv $1 $1.cvswrap
  9.  
  10. # untar the file
  11.  
  12. if `gzip -t $1.cvswrap > /dev/null 2>&1`
  13. then
  14.     gzcat -d $1.cvswrap | gnutar --preserve --sparse -x -f -
  15. else
  16.     gnutar --preserve --sparse -x -f $1.cvswrap
  17. fi
  18.  
  19. # remove the original
  20. rm -rf $1.cvswrap
  21.